package com.team7.stat.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team7.stat.dao.OrderDao;
import com.team7.stat.entity.Order;
import com.team7.stat.service.OrderService;
import com.team7.stat.utils.CommonResult;
import com.team7.stat.vo.OrderVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: OrderServiceImpl
 * @Description: 订单 服务实现类
 * @Author: 赵孟阳
 * @Date: 2021/10/19 21:21
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements OrderService {
    @Resource
    private OrderDao orderDao;

    @Override
    public CommonResult queryAllOrderBang(Order order) {
        List<OrderVo> orderVos = orderDao.queryAllOrderBang(order);
        return new CommonResult(2000,"查询成功",orderVos);
    }
}
